class ListByBlindIdRecordModel {
  List<ListByBlindIdRecordItem>? list;
  int? pageNum;
  int? pageSize;
  int? total;
  int? totalPage;

  ListByBlindIdRecordModel({
    this.list,
    this.pageNum,
    this.pageSize,
    this.total,
    this.totalPage,
  });

  ListByBlindIdRecordModel.fromJson(Map<String, dynamic> json) {
    if (json["list"] is List) {
      list =
          json["list"] == null
              ? null
              : (json["list"] as List)
                  .map((e) => ListByBlindIdRecordItem.fromJson(e))
                  .toList();
    }
    if (json["pageNum"] is num) {
      pageNum = (json["pageNum"] as num).toInt();
    }
    if (json["pageSize"] is num) {
      pageSize = (json["pageSize"] as num).toInt();
    }
    if (json["total"] is num) {
      total = (json["total"] as num).toInt();
    }
    if (json["totalPage"] is num) {
      totalPage = (json["totalPage"] as num).toInt();
    }
  }

  static List<ListByBlindIdRecordModel> fromList(
    List<Map<String, dynamic>> list,
  ) {
    return list.map(ListByBlindIdRecordModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if (list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    _data["pageNum"] = pageNum;
    _data["pageSize"] = pageSize;
    _data["total"] = total;
    _data["totalPage"] = totalPage;
    return _data;
  }
}

class ListByBlindIdRecordItem {
  int? awardId;
  String? awardImgUrl;
  String? awardName;
  String? boxCoverImageUrl;
  int? boxId;
  String? boxImageUrl;
  String? boxName;
  String? createTime;
  String? invalidDate;

  ListByBlindIdRecordItem({
    this.awardId,
    this.awardImgUrl,
    this.awardName,
    this.boxCoverImageUrl,
    this.boxId,
    this.boxImageUrl,
    this.boxName,
    this.createTime,
    this.invalidDate,
  });

  ListByBlindIdRecordItem.fromJson(Map<String, dynamic> json) {
    if (json["awardId"] is num) {
      awardId = (json["awardId"] as num).toInt();
    }
    if (json["awardImgUrl"] is String) {
      awardImgUrl = json["awardImgUrl"];
    }
    if (json["awardName"] is String) {
      awardName = json["awardName"];
    }
    if (json["boxCoverImageUrl"] is String) {
      boxCoverImageUrl = json["boxCoverImageUrl"];
    }
    if (json["boxId"] is num) {
      boxId = (json["boxId"] as num).toInt();
    }
    if (json["boxImageUrl"] is String) {
      boxImageUrl = json["boxImageUrl"];
    }
    if (json["boxName"] is String) {
      boxName = json["boxName"];
    }
    if (json["createTime"] is String) {
      createTime = json["createTime"];
    }
    if (json["invalidDate"] is String) {
      invalidDate = json["invalidDate"];
    }
  }

  static List<ListByBlindIdRecordItem> fromList(
    List<Map<String, dynamic>> list,
  ) {
    return list.map(ListByBlindIdRecordItem.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["awardId"] = awardId;
    _data["awardImgUrl"] = awardImgUrl;
    _data["awardName"] = awardName;
    _data["boxCoverImageUrl"] = boxCoverImageUrl;
    _data["boxId"] = boxId;
    _data["boxImageUrl"] = boxImageUrl;
    _data["boxName"] = boxName;
    _data["createTime"] = createTime;
    _data["invalidDate"] = invalidDate;
    return _data;
  }
}
